package com.unknowpupil.oauth2.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 权限表
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("tb_permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TbPermission implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)

    private Long id;
    /**
     * 父权限
     */

    @ApiModelProperty(value = "父权限")
    private Long parentId;
    /**
     * 权限名称
     */

    @ApiModelProperty(value = "权限名称")
    private String name;
    /**
     * 权限英文名称
     */

    @ApiModelProperty(value = "权限英文名称")
    private String enname;
    /**
     * 授权路径
     */

    @ApiModelProperty(value = "授权路径")
    private String url;
    /**
     * 备注
     */

    @ApiModelProperty(value = "备注")
    private String description;

    private Date created;

    private Date updated;

}
